package com.llkj.qingnianguoxue.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.llkj.qingnianguoxue.R;
import com.llkj.qingnianguoxue.bean.WinningRuleBean;

import java.util.List;

/**
 * 抽奖规则
 */
public class WinningRuleAdapter extends BaseQuickAdapter<WinningRuleBean, BaseViewHolder> {

    public WinningRuleAdapter(int layoutResId, List<WinningRuleBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, WinningRuleBean item) {
        baseViewHolder.setText(R.id.tv_tag, item.getRuleTitle());
        baseViewHolder.setText(R.id.tv_content, item.getRuleDescription());
    }

}
